<template>
  <div class="shengmu4 base-background-img">
    <div class="j" @click="playFun(j)">
        <img src="~@/assets/youxiaoxianjie/shengmu/4/j.png">
    </div>
    <div class="q" @click="playFun(q)">
        <img src="~@/assets/youxiaoxianjie/shengmu/4/q.png">
    </div>
    <div class="x" @click="playFun(x)">
        <img src="~@/assets/youxiaoxianjie/shengmu/4/x.png">
    </div>
    <c-pdf @closePdf="closePdf" v-if="isshowpdf" :info="info" :infourl="pdfurl"></c-pdf>
  </div>
</template>

<script>
  export default {
    name: 'shengmu4',
    data () {
      return {
        isshowpdf: false,
        infourl: '',
        info: '',
        j: {
          url: 'static/youxiao/pdf/shengmu/j.pdf',
          data: []
        },
        q: {
          url: 'static/youxiao/pdf/shengmu/q.pdf',
          data: []
        },
        x: {
          url: 'static/youxiao/pdf/shengmu/x.pdf',
          data: []
        }
      }
    },
    methods: {
      playFun: function (item) {
        console.log(item)
        this.isshowpdf = true
        this.pdfurl = item.url
        this.info = item.data
      },
      closePdf: function () {
        this.isshowpdf = false
      }
    }
  }
</script>

<style scoped>
.shengmu4 {
  background: url(~@/assets/youxiaoxianjie/shengmu/4/bg.png);
}
.shengmu4 > div {
  position: absolute; 
}
.j {
  top: 290px;
  left: 302px;
}
.q {
  top: 290px;
  left: 550px;
}
.x {
  top: 305px;
  left: 798px;
}
</style>
